package com.lm.upms.api.feign;

import com.lm.common.core.constant.ServiceNameConstants;
import com.lm.common.core.util.R;
import com.lm.upms.api.entity.SysOperLog;
import com.lm.upms.api.feign.factory.RemoteLogServiceFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 日志
 *
 * @author lm
 * @date 2019/7/8 11:34
 */
@FeignClient(contextId = "remoteLogService", name = ServiceNameConstants.SERVICE_UMPS, fallbackFactory = RemoteLogServiceFallbackFactory.class)
public interface RemoteLogService {

    /**
     * 保存日志
     *
     * @param sysLog 日志实体
     * @return
     */
    @PostMapping("/log/save")
    public void saveOperLog(@RequestBody SysOperLog sysLog);

}